<template>
	<view class="author">
		<view class="author-img">
			<image :src="item.avatar" mode="aspectFill"></image>
		</view>
		<view class="authoe-content">
			<view class="authoe-content-name">{{item.author_name}}</view>
			<view class="authoe-content-info">
				<view class="authoe-content-info-job">{{item.professional}}</view>
				<view class="authoe-content-info-desc">
					<text>发帖 {{item.article_ids?item.article_ids.length:0}}</text>
					<text>粉丝 {{item.fans_count}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"author-list",
		props:{
			item:{
				type:Object,
				default(){
					return {}
				}
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.author{
		display: flex;
		padding: 10px 0;
		margin: 0 10px;
		border-radius: 5px;
		box-sizing: border-box;
		border-bottom: 1px solid #F5F5F5;
		.author-img{
			flex-shrink: 0;
			height: 40px;
			width: 40px;
			overflow: hidden;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.authoe-content{
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			padding-left: 10px;
			width: 100%;
			.authoe-content-name{
				position: relative;
				padding-right: 30px;
				font-size: 14px;
				color: #333;
				font-weight: bold;
				line-height: 1.2;
			}
			.authoe-content-info{
				display: flex;
				justify-content: space-between;
				font-size: 12px;
				.authoe-content-info-job{
					color: #666;
				}
				.authoe-content-info-desc{
					color: #999;
					line-height: 1.5;
					text:first-child{
						margin-right: 10px;
					}
				}
			}
		}
	}
</style>
